package com.woniuxy.joylife.manager.VO;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.woniuxy.common.validate.AddGroup;
import com.woniuxy.common.validate.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class OwnerVO {
    /**
     * 业主编号
     */
    @NotBlank(groups = {UpdateGroup.class})
    @TableId
    private String ownerId;
    /**
     * 业主姓名
     */
    @NotBlank(groups = {AddGroup.class,UpdateGroup.class})
    private String name;
    /**
     * 业主性别
     */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private Integer gender;
    /**
     * 逻辑删除 0 存在 1 删除
     */
    @TableLogic
    private Integer state;
    /**
     * 创建日期
     */
    private Date createtime;
    /**
     * 更新日期
     */
    private Date updatetime;
    /**
     * 身份证
     */
    @NotBlank(groups = {AddGroup.class,UpdateGroup.class})
    private String idCard;
    /**
     * 电话号码
     */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private String phone;

    /**
     * 栋号
     */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private String blockId;

    /**
     * 单元号
     */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private String unitId;

    /**
     * 房号
     */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private String roomId;
}
